import Mock from 'mockjs2'
import { builder } from '../util'

const messageList = []

for (let i = 0; i < 2; i++) {
  messageList.push({
    title: Mock.mock('@ctitle'),
    description: '一分钟前',
    avatar: 'https://gw.alipayobjects.com/zos/rmsportal/kISTdvpyTAhtGxpovNWd.png',
    href: '#'
  })
}

const message = () => {
  return builder(messageList)
}

Mock.mock(/\/api\/notice\/get/, 'get', message)
